#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : YuLei Lan
# @Software: PyCharm


def format_menu(m):
    return {
        "path": m["path"],
        "name": m["name"],
        "component": m["component"],
        "meta": {
            "title": m["title"],
            "icon": m["icon"]
        },
        "hidden": m["hidden"]
    }
